package pl.gigiel.behaviour.util;

import com.jme.math.Vector3f;

public class RandomPositionGenerator {
	public static Vector3f position(Vector3f size, Vector3f cornerMin, Vector3f cornerMax) {
		Vector3f result = new Vector3f();
		result.setX(Util.random(cornerMin.getX(), cornerMax.getX()));
		result.setY(Util.random(cornerMin.getY(), cornerMax.getY()));
		result.setZ(Util.random(cornerMin.getZ(), cornerMax.getZ()));
		return result;
	}
}
